﻿using System;
using System.Text;

namespace PhiStore.Experiments.Serialize
{
    [Serializable]
    class GenericSerializable
    {
        public int number1;
        public decimal number2;
        public string text;
        public byte data1;
        public byte[] data2;

        public GenericSerializable(string input)
        {
            text = input;
            data2 = ASCIIEncoding.ASCII.GetBytes(input);
            data1 = data2[0];
            number1 = (int)data1;
            number2 = new decimal(number1);
        }
    }
}
